package com.design.designmode.struct.decorate;

/**
 * @author hxl
 * @since 2023-04-17
 */
public class Teacher extends Person {

    public Teacher(String name) {
        this.name = name;
    }

    @Override
    public void operate() {
        System.out.println(name + "this is teacher");
    }
}
